package com.chixing.day07_adstract.Interfaces1;

public class Computer {
    public static void main(String[] args) {


                Mainboard m = new Mainboard() {
                    @Override
                    public String Cpu() {
                        return null;
                    }

                    @Override
                    public String cpuClosing() {
                        return null;
                    }
                };


                VideoCard t= new VideoCard() {
                    @Override
                    public Stirng videoRunning() {
                        return null;
                    }

                    @Override
                    public Stirng videoClosing() {
                        return null;
                    }
                };
                Computer c = new Computer();

                m.setCpu(c);
                m.setVideoCard(t);
                m.run();

            }
        }

